package com.ibm.cps.jarxs;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path(ParaUtility.Service)
public interface ServiceResource {

	// ../Services/{tenat}
	@GET
	@Path(ParaUtility.TenantFormat)
	Response GetService(@PathParam(ParaUtility.TenantField) String tenantid,@HeaderParam(ParaUtility.auth) String key);
	
	@PUT
	@Consumes(MediaType.APPLICATION_JSON)
	@Path(ParaUtility.TenantFormat)
	Response PutService(@PathParam(ParaUtility.TenantField) String tenantid,String json,@HeaderParam(ParaUtility.auth) String key);
}
